import 'package:flutter/material.dart';

class LocalizationsResource {
  LocalizationsResource(this.isZh);
  bool isZh  = false;

  static LocalizationsResource? of (BuildContext context)  {
    return Localizations.of<LocalizationsResource>(context, LocalizationsResource);
  }

  String get title {
    return isZh ? 'Flutter应用' : 'Flutter APP';
  }
}